package com.ljy.system.marvel_sys;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author LiJunYi
 */
@SpringBootApplication
@EnableTransactionManagement
@MapperScan("com.ljy.system.marvel_sys.dao")
public class MarvelSysApplication {

    public static void main(String[] args) {
        SpringApplication.run(MarvelSysApplication.class, args);
    }

    /**
     * 分页插件
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }

}
